<template>
  <div>
    <van-notice-bar class="notice" color="grey" background="#fff" :scrollable="false">
      <img src="@/assets/img/notion.png" slot="left-icon" alt />
    </van-notice-bar>
    <van-swipe vertical class="notice-swipe" :autoplay="2000" :show-indicators="false">
      <van-swipe-item style="width:100%" v-for="(item,index) in value" :key="index">
        <div class="van-ellipsis">{{item}}</div>
      </van-swipe-item>
    </van-swipe>
    <div class="more">
      更多
      <van-icon name="arrow-down" />
    </div>
  </div>
</template>

<script>
export default {
  name: "notice",
  props: { value: Array }
};
</script>

<style scoped>
.notice-swipe {
  height: 0.74rem;
  line-height: 0.74rem;
  font-size: 12px;
  color: grey;
  position: absolute;
  top: 3.26rem;
  left: 1rem;
  right: 1.5rem;
}
.notice {
  position: absolute;
  top: 3.26rem;
  left: 0;
  right: 0;
  height: 0.74rem;
}
.notice img {
  width: 0.5rem;
  height: 0.5rem;
}
.more {
  position: absolute;
  top: 3.26rem;
  right: 0.5rem;
  height: 0.74rem;
  line-height: 0.74rem;
  font-size: 12px;
  color: grey;
}
</style>